package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.article.query.DestinationQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll(int deep);

    int updateByPrimaryKey(Destination record);

    List<Destination> selectForList(DestinationQueryObject qo);

    List<Destination> selectDestinationByRid(Long[] refIds);

    void updateHotValueById(@Param("hot") int hot, @Param("id") Long id);

    void updateInfoById(@Param("id") Long id, @Param("info") String info);

    List<Destination> selectHotDestByRegionId(Long rid);

    List<Destination> selectList();

    Destination getByUserId(Long id);

    List<Destination> selectByUserId(Long id);

    List<Destination> selectDestsByIds(Long[] refIds);

}